{% load i18n %}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Djips - {% block title %}administration index{% endblock %}</title>
    <link rel="stylesheet" type="text/css" media="screen"
	  href="{{media_url}}djips/admin.css" />

    <script type="text/javascript">
      var admin_base_url = '{{admin_base_url}}';
      var media_url = '{{media_url}}';
      var images_folder = media_url + '/djips/images/'
    </script>

    <!-- jQuery -->
    <script src="{{media_url}}djips/js/jquery-1.3.2.min.js"></script>

    <!-- General Djips stuff. -->
    <script src="{{media_url}}djips/js/djips.js"></script>

    <!-- Plone form tabbing - www.plone.org -->
    <script src="{{media_url}}djips/js/plone_form_tabbing.js"></script>

    {% block externalref %}
      <!-- Insert here Javascript/CSS files needed for a specific page. -->
    {% endblock %}

   </head>
  <body>
    <div id="djips">
      <div id="header">
	<h1>{% trans "Djips administration" %}</h1>
	<div id="menu">
	  <ul class="main_menu">
	    {% for app, lst in menu.items %}
	    <li id="{{app.1}}"
                class="{{ app.2 }}_module
                       {% if forloop.first %}first_module{% endif %}
	 	       {% if forloop.last %}last_module{% endif %}">
	      <a href="{{admin_base_url}}/{{app.1}}/">{{app.0}}</a>
	      <ul class="sub_menu">
		{% for title, url, active in lst %}
		<li class="{% if active %}active_page{% endif %}">
		  <a href="{{url}}">{{title}}</a>
		</li>
		{% endfor %}
	      </ul>
	      {% endfor %}
	    </li>
	  </ul>
	</div>
      </div>
      <div id="content">
	{% block content %} {% endblock %}
      </div>
      <div id="footer">
       <p class="center">Powered
       by <a href="http://code.google.com/p/djips/">Djips</a><br />
	 {% if user %}<a href="{{admin_base_url}}/logout">
	   {% trans "logout" %}</a>
	 {% endif %}
       </p>
      </div>
    </div>
  </body>
</html>
